<?php use_helper('PA_Links') ?>
<?php use_helper('PA_Core') ?>
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title><?php echo isset($title) ? $title : "Dokument" ?></title>
  </head>
  <body style="margin: 0;padding: 5px;font-family: sans-serif;font-size: 10pt;">
    <div class="cDocument">
      <?php if(!include_slot('documentError')): ?>
      Dzień dobry, przesyłam zamówienie:
      <br />
      <div class="cDate">
        Leźno, <?php echo date('d.m.Y'); ?>
      </div>
      <hr style="border: 1px solid #33CCCC;"/>
      <table id="content" border="1" style="border: 1px solid black; border-collapse: collapse;">
        <tr>
          <td id="header" colspan="4" style="padding: 4px; background-color: #AAAAAA; font-size: 11pt; font-weight: bold; text-align: center;">
            <b>
          <?php if(!include_slot('documentType')): ?>
            Bez nazwy
          <?php endif; ?>
            </b>
          </td>
        </tr>
        <tr>
          <td id="title" width="150" nowrap="nowrap" style="padding: 4px;background-color: #DDDDDD; text-align: right; font-weight: bold;">Numer dokumentu</td>
          <td width="250" style="padding: 4px;text-align: center;">
          <?php if(!include_slot('documentTitle')): ?>
            Bez nazwy
          <?php endif; ?>
          </td>
          <td id="title" width="100" nowrap="nowrap" style="padding: 4px;background-color: #DDDDDD; text-align: right; font-weight: bold;">Numer arkusza</td>
          <td style="padding: 4px;text-align: center; ">
          <?php if(!include_slot('documentPages')): ?>
            1 / 1
          <?php endif; ?>
          </td>
        </tr>
        <tr>
          <td id="title" style="padding: 4px;background-color: #DDDDDD; text-align: right; font-weight: bold;">Uwagi</td>
          <td colspan="3" style="padding: 4px;text-align: center; ">
          <?php if(!include_slot('documentAnnotation')): ?>
            -
          <?php endif; ?>
          </td>
        </tr>
        <tr>
          <td id="header" colspan="4" style="padding: 4px; background-color: #AAAAAA; font-size: 11pt; font-weight: bold; text-align: center;">
            Wystawiający
          </td>
        </tr>
        <tr>
          <td id="title" width="150" style="padding: 4px;background-color: #DDDDDD; text-align: right; font-weight: bold;">Imię i nazwisko</td>
          <td style="padding: 4px;text-align: center;">
          <?php if(!include_slot('documentAuthorName')): ?>
            Brak autora
          <?php endif; ?>
          </td>
          <td id="title" width="100" style="padding: 4px;background-color: #DDDDDD; text-align: right; font-weight: bold;">E-mail</td>
          <td style="padding: 4px;text-align: center;">
          <?php if(!include_slot('documentAuthorEmail')): ?>
            Brak email
          <?php endif; ?>
          </td>
        </tr>
        <tr>
          <td id="title" style="padding: 4px;background-color: #DDDDDD; text-align: right; font-weight: bold;">Tel. kom.</td>
          <td style="padding: 4px;text-align: center;">
          <?php if(!include_slot('documentAuthorMobile')): ?>
            Brak tel. kom.
          <?php endif; ?>
          </td>
          <td id="title" style="padding: 4px;background-color: #DDDDDD; text-align: right; font-weight: bold;">Tel.</td>
          <td  style="padding: 4px;text-align: center;">
          <?php if(!include_slot('documentAuthorNumber')): ?>
            Brak tel.
          <?php endif; ?>
          </td>
        </tr>
        <?php include_slot('documentExtraRows') ?>
      </table>
      <br />
      <table id="content" border="1" style="border: 1px solid black; border-collapse: collapse;">
        <?php include_slot('documentItemsRows') ?>
      </table>
      <br />
      <br />
      <div style="position: relative; left: 0px; text-align: left;">
        Z poważaniem
        <br />
        <?php include_slot('documentAuthorName') ?><br />
        email: <?php include_slot('documentAuthorEmail') ?><br />
        tel. kom.: <?php include_slot('documentAuthorMobile') ?><br /><br />
        <b><?php include_slot('companyName') ?><?php //ARS KOMFORT SERWIS Sp. z o.o. ?></b><br />
        <?php include_slot('companyAddress') ?><?php //ul. Świętojańska 44, 81 - 393 Gdynia ?><br />
      </div>
      <?php endif; ?>
    </div>
  </body>
</html>
